const request = (url,data={},method="GET")=>{
		return new Promise((resolve,reject)=>{
			wx.request({
			  url: 'http://localhost:3001' + url, //仅为示例，并非真实的接口地址
			  data,
				method,
			  success (res) {
					resolve(res.data)
			  },
				fail(err){
					reject(err)
				}
			})
		})
}
export default  request